package com.maple.sdk.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.maple.sdk.dao.IRoleDao;
import com.maple.sdk.entity.TSystemRole;
import com.maple.sdk.service.IRoleService;
/**
 * @Description 角色管理Service
 * @author 李铭浩
 * @Date 2012-11-6
 * @Porject  BasicRole
 */
@Service("IRoleService")
public class RoleServiceImpl extends BaseServiceImpl implements IRoleService {
	
	private IRoleDao roleDao;
	public IRoleDao getRoleDao() {
		return roleDao;
	}
	@Autowired
	@Qualifier("IRoleDao")
	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}
	
	@Override
	public List<TSystemRole> findRoleList() {
		return roleDao.findRoleList();
	}
	@Override
	public void saveRole(TSystemRole role) {
		roleDao.save(role);
	}
	

}
